//
//  HCMessageCenterTableViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/1/19.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCMessageCenterTableViewCell.h"

#import "HCMsgCenterModel.h"

@implementation HCMessageCenterTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.lineView.backgroundColor = YBKRGBCOLOR(242, 242, 242, 1);
    self.headIMG.layer.masksToBounds = YES;
    self.headIMG.layer.cornerRadius = 24.0;
    // Initialization code
}

-(void)setModel:(id)model {
    HCMsgCenterData *data = (HCMsgCenterData *)model;
    
    [self.headIMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.logo]]];
    
    self.name.text = [NSString stringWithFormat:@"%@",data.name];
    self.content.text = [NSString stringWithFormat:@"%@",data.text];
    self.time.text = [NSString stringWithFormat:@"%@",data.time];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
